// 批量安装插件模块
const PluginsInstall = () => {
  const modules: any = {}
  const requireModules = import.meta.globEager("@/plugins/**/*.ts")
  for (let key in requireModules) {
    const fileName = key
    if (fileName.split('/')[fileName.split('/').length - 1].indexOf('Plugin') < 0) continue
    const module = requireModules[key].default
    const name = module.name
    modules[name] = new module()
  }
  return modules
}
export default PluginsInstall